package com.wangsd.common.task;


import com.wangsd.web.report.service.BillRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MyTask {

    @Autowired
    BillRecordService billRecordService;

    //每天晚上2点执行拉去订单
    @Scheduled(cron = "00 00 02 ? * *")
    //@Scheduled(fixedRate = 60000)
    public void BankCardScheduler() {
        log.info("bill 开始");
        billRecordService.downloadWxBill();
        log.info("bill 结束");
    }
}
